package com.nikolaj.kuzan.utils;

/**
 * Created by Николай on 12.04.14.
 */
public class DoubleConverter {

    public static double[] objectDoubleArrToDoubleArr(Double[] objDoubles){

        double[] doubles = new double[objDoubles.length];
        for(int i = 0; i < objDoubles.length; i++){
            doubles[i] = objDoubles[i];
        }
        return doubles;
    }

    public static Double[] doubleArrToObjectDoubleArr(double[] doubles){

        Double[] objDoubles = new Double[doubles.length];
        for(int i = 0; i < doubles.length; i++){
            objDoubles[i] = doubles[i];
        }
        return objDoubles;
    }

}
